<?php
$mod=isset($_GET['module']) ? $_GET['module'] : '';//$_GET['module'];
$view=isset($_GET['view']) ? $_GET['view'] : '';//$_GET['view'];
$aksi=isset($_GET['act']) ? $_GET['act'] : '';//$_GET['act'];

if($mod==""){
	include "home.php";
}else{
	if($mod != "" && $view == ""){
		if(file_exists( "module/".$mod.'/tampil.php')){
			include "module/".$mod.'/'.'tampil.php';
		}else{
			echo "<div id='welcome_b'>";
			echo "<div id='eror'>";
			echo "Modul Belum Ada !";
			echo "</div>";
			echo "</div>";
		}
	} 
	
	if(($view!="")&& ($mod!="")){
		if(file_exists("module/".$mod.'/'.$view.'.php')){
			include "module/".$mod.'/'.$view.'.php';
		}else{
			echo "<div id='welcome_b'>";
			echo "<div id='eror'>";
			echo "View Belum Ada !";
			echo "</div>";
			echo "</div>";
		}
	}

	if(($aksi!="")&& ($mod!="")){
		if(file_exists("module/".$mod.'/'.$aksi.'.php')){
			include "module/".$mod.'/'.$aksi.'.php';
		}else{
			echo "<div id='welcome_b'>";
			echo "<div id='eror'>";
			echo "Aksi Belum Ada !";
			echo "</div>";
			echo "</div>";
		}
	}
}
?>